import Vue from 'vue'
import Router from 'vue-router'

// 一级路由
import Home from './../pages/home/home'
import Login from './../pages/login/login'
import LoginMember from './../pages/loginMember/loginMember'//企业会员宣传登录

//二级路由
import Count from './../pages/count/count'  //统计

import Member from './../pages/member/member' //会员管理
import MemberCompany from './../pages/member/memberCompany' //会员绑定的企业
import Consumer from './../pages/member/consumer' //普通用户管理
import MemberPayment from './../pages/member/memberPayment' //会员的缴费记录
import Apply from './../pages/member/apply' //入会申请
import Integral from './../pages/member/integral' //积分榜
import IntegralListManagement from './../pages/member/integralListManagement';//积分管理

import Payment from './../pages/finance/payment' //缴费管理
import Income from './../pages/finance/income' //收支管理
import Cost from './../pages/finance/cost' //费用管理
import Assets from './../pages/finance/assets' //固定资产管理
import ContributionReturn from './../pages/finance/contributionReturn' //会费返还管理
import DonationManagement from './../pages/finance/donationManagement' //捐赠管理

import Task from './../pages/task/task' //任务管理
import TaskDetail from './../pages/task/taskDetail' //任务详情
import Onduty from './../pages/task/onduty' //值班表
import Dutymanagement from './../pages/task/dutymanagement' //值班管理
import Leave from './../pages/task/leave' //值班管理

import ActivityList from './../pages/activity/activityList' //活动列表
import RegistrationForm from './../pages/activity/registrationForm/registrationForm' //活动列表》报名表


import Enterprise from './../pages/propaganda/enterprise' //会员企业
import Corporate from './../pages/propaganda/corporate' //企业内的会员
import GroupHistory from './../pages/propaganda/desc' //商会简介
import Eminent from './../pages/propaganda/eminent' //杰出人物
import Style from './../pages/propaganda/style' //商会风采
import CompanyPublicity from './../pages/propaganda/companyPublicity'//企业宣传
import Support from './../pages/propaganda/support'//企业宣传

import Goods from './../pages/shop/goods' //商品管理
import Store from './../pages/shop/store' //店铺管理
import Order from './../pages/shop/order' //订单管理
import Settlement from './../pages/shop/settlement' //结算管理

import Banner from './../pages/system/banner' //轮播图管理
import Category from './../pages/system/category' //栏目管理
import Permission from './../pages/system/permission' //权限管理
import Character from './../pages/system/character' //角色管理
import Administrator from './../pages/system/administrator' //管理员列表
import MemberRule from './../pages/system/memberRule' //会员等级管理
import PayRule from './../pages/system/payRule' //缴费规则管理
import PayRuleDetail from './../pages/system/payRuleDetail' //缴费规则管理细则
import IntegralRule from './../pages/system/integralRule' //积分规则
import IntegralRuleDetail from './../pages/system/integralRuleDetail' //积分规则》设置单项分
import WebViewPage from './../pages/system/webViewPage' //积分规则

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/login',
      component: Login,
      namr: 'Login'
    },
    {
      path:'/loginMember',
      component: LoginMember,
      namr: 'LoginMember'
    },
    {
      path: '/',
      redirect:'/login'
    },
    {
      path:'/home',
      component: Home,
      redirect:'/count',
      namr: 'Home',
      children:[
        { path: '/count', component: Count, name: 'Count' },
        { path: '/member', component: Member, name: 'Member' },
        { path: '/memberCompany', component: MemberCompany, name: 'MemberCompany' },
        { path:'/memberPayment',component:MemberPayment,name:'MemberPayment'},
        { path: '/consumer', component: Consumer, name: 'Consumer' },
        { path: '/apply', component: Apply, name: 'Apply' },
        { path: '/payment', component: Payment, name: 'Payment' },
        { path: '/income', component: Income, name: 'Income' },
        { path:'/integralListManagement', component: IntegralListManagement, name:'IntegralListManagement'},
        { path: '/cost', component: Cost, name: 'Cost' },
        { path: '/assets', component: Assets, name: 'Assets' },
        { path: '/contributionReturn', component: ContributionReturn, name: 'ContributionReturn' },
        { path: '/donationManagement', component: DonationManagement, name: 'DonationManagement' },
        { path: '/task', component: Task, name: 'Task' },
        { path: '/taskDetail', component: TaskDetail, name: 'TaskDetail' },
        { path: '/leave', component: Leave, name: 'Leave' },
        
        { path: '/onduty', component: Onduty, name: 'Onduty' },
        { path: '/dutymanagement', component: Dutymanagement, name: 'Dutymanagement' },
        { path: '/activityList', component: ActivityList, name: 'ActivityList' },
        { path: '/registrationForm', component: RegistrationForm, name: 'RegistrationForm' },
        { path: '/integral', component: Integral, name: 'Integral' },
        { path: '/enterprise', component: Enterprise, name: 'Enterprise' },
        { path: '/corporate', component: Corporate, name: 'Corporate' },
        { path: '/desc', component: GroupHistory, name: 'GroupHistory' },
        { path: '/eminent', component: Eminent, name: 'Eminent' },
        { path: '/style', component: Style, name: 'Style' },
        { path:'/companyPublicity',component:CompanyPublicity ,name:'CompanyPublicity '},
        { path: '/support', component: Support, name: 'Support' },
        { path: '/goods', component: Goods, name: 'Goods' },
        { path: '/store', component: Store, name: 'Store' },
        { path: '/order', component: Order, name: 'Order' },
        { path: '/settlement', component: Settlement, name: 'Settlement' },
        { path: '/banner', component: Banner, name: 'Banner' },
        { path: '/category', component: Category, name: 'Category' },
        { path: '/permission', component: Permission, name: 'Permission' },
        { path: '/character', component: Character, name: 'Character' },
        { path: '/administrator', component: Administrator, name: 'Administrator' },
        { path: '/memberRule', component: MemberRule, name: 'MemberRule' },
        { path: '/payRule', component: PayRule, name: 'PayRule' },
        { path: '/payRuleDetail', component: PayRuleDetail, name: 'PayRuleDetail' },
        { path: '/integralRule', component: IntegralRule, name: 'IntegralRule' },
        { path: '/integralRuleDetail', component: IntegralRuleDetail, name: 'IntegralRuleDetail' },
        { path: '/webViewPage', component: WebViewPage, name: 'WebViewPage' },
      ],
    }
  ]
})
